//
//  ViewOcupation.m
//  FinAppsParty App
//
//  Created by Ivan Paquico on 11/11/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "ViewOcupation.h"

@implementation ViewOcupation
@synthesize calle_label;
@synthesize pais_label;
@synthesize numero_dormitorios_dobles;
@synthesize numero_dormitorios;
@synthesize image1;
@synthesize image2;
@synthesize image3;
@synthesize _insideImage1;
@synthesize _insideImage2;
@synthesize _insideImage3;
@synthesize num_dormitorios;
@synthesize num_dormitorios_dobles;
@synthesize calle;
@synthesize pais;

-(void)dealloc{
    [calle release];
    [pais release];
    
    [pais_label release];
    [calle_label release];
    [numero_dormitorios_dobles release];
    [numero_dormitorios release];
    
    [image1 release];
    [image2 release];
    [image3 release];
   
    [_insideImage1 release];
    [_insideImage2 release];
    [_insideImage3 release];
    
    [num_dormitorios release];
    [num_dormitorios_dobles release];

}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    image1.image = _insideImage1;
    image2.image = _insideImage2;
    image3.image = _insideImage3;
    
    numero_dormitorios.text = [NSString stringWithFormat:@"número de dormitorios individuales | %@",num_dormitorios];
    numero_dormitorios_dobles.text = [NSString stringWithFormat:@"número de dormitorios dobles | %@",num_dormitorios_dobles]; 
    
    calle_label.text = calle;
    pais_label.text = pais;


    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [self setNumero_dormitorios:nil];
    [self setNumero_dormitorios_dobles:nil];
    [self setCalle_label:nil];
    [self setPais_label:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
	return YES;
}

@end
